home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / rocketcar2.swf / scripts / frame_23 / PlaceObject2_448_319 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2008-09-24  |  1.0 KB  |  51 lines

  1. onClipEvent(enterFrame){
  2.    if(!_root.car.onfloor)
  3.    {
  4.       if(Key.isDown(39))
  5.       {
  6.          _visible = true;
  7.          if(!sound)
  8.          {
  9.             if(_root.sound)
  10.             {
  11.                _root.steamSide.start(0,99999);
  12.                sound = true;
  13.             }
  14.          }
  15.       }
  16.    }
  17.    if(_root.gravityType == "normal")
  18.    {
  19.       if(!Key.isDown(39) or _root.car.onfloor or _root.fake._rotation > 20 or _root.fake._rotation < -20)
  20.       {
  21.          _visible = false;
  22.          sound = false;
  23.          if(!_root.f3.sound)
  24.          {
  25.             _root.steamSide.stop();
  26.          }
  27.       }
  28.    }
  29.    if(_root.gravityType == "reverse")
  30.    {
  31.       if(!Key.isDown(39))
  32.       {
  33.          _visible = false;
  34.          sound = false;
  35.          if(!_root.f3.sound)
  36.          {
  37.             _root.steamSide.stop();
  38.          }
  39.       }
  40.    }
  41.    _X = _root.fake._x - 30;
  42.    if(_root.gravityType == "normal")
  43.    {
  44.       _Y = _root.fake._y - 14;
  45.    }
  46.    if(_root.gravityType == "reverse")
  47.    {
  48.       _Y = _root.fake._y + 10;
  49.    }
  50. }
  51.